//专门管理请求地址的js
const baseUrl = {
  dev: "http://localhost:3000",
  pro: "http://shop.bluej.cn/api",
};
const api = {
  //获取商品列表api
  goods: baseUrl.pro + "/goods",
  //获取轮播图的api
  lunbo: baseUrl.pro + "/carousel",
  //获取商品分类的api
  classify: baseUrl.pro + "/classify/classifyGoods",
  //用户登陆
  login: baseUrl.pro + "/login",
  //用户注册
  register:baseUrl.pro+"/register",
  //添加购物车
  shoppingCart:baseUrl.pro + "/shoppingCart",
  //获取购物车信息
  cartInfo:baseUrl.pro+"/shoppingCart",
  //删除购物车某项商品
  deleteShop:baseUrl.pro+"/shoppingCart",
  //城市api
  city:baseUrl.pro+"/city",
  //地址api
  address:baseUrl.pro+"/address",
  //订单
  order:baseUrl.pro + "/order",
  //---下面的api是演示用的 环境不对，大家做的时候要用pro得环境
  // users: baseUrl.dev + "/users",
  // admins: baseUrl.dev + "/admins",
  // goods: baseUrl.dev + "/goodsList",
};

export default api;
